<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Request Headers - Header Server</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
            color: #333;
        }

        .container {
            max-width: 960px;
            margin: 0 auto;
        }

        .header {
            background: white;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .title {
            font-size: 32px;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .title::before {
            content: '📡';
            font-size: 36px;
        }

        .subtitle {
            color: #718096;
            font-size: 16px;
        }

        .method-badge {
            display: inline-block;
            padding: 6px 16px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 14px;
            color: white;
            background: {{METHOD_COLOR}};
            margin-left: 10px;
        }

        .section {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title::before {
            content: '';
            width: 4px;
            height: 24px;
            background: #667eea;
            border-radius: 2px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

        th {
            background: #f7fafc;
            padding: 12px;
            text-align: left;
            font-weight: 600;
            color: #4a5568;
            font-size: 13px;
            text-transform: uppercase;
            border-bottom: 2px solid #e2e8f0;
        }

        td {
            padding: 12px;
            border-bottom: 1px solid #e2e8f0;
            font-size: 14px;
        }

        .header-key {
            color: #667eea;
            font-weight: 600;
            font-family: 'Courier New', monospace;
            width: 30%;
        }

        .header-value {
            color: #2d3748;
            font-family: 'Courier New', monospace;
            word-break: break-all;
        }

        .empty {
            text-align: center;
            color: #a0aec0;
            font-style: italic;
        }

        .body-content {
            background: #1a202c;
            color: #68d391;
            padding: 20px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            overflow-x: auto;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        @media (max-width: 768px) {
            .title {
                font-size: 24px;
            }

            table {
                font-size: 12px;
            }

            th, td {
                padding: 8px;
            }
        }
    </style>
</head>
<body>
<div class="container">
    <div class="header">
        <h1 class="title">
            Request Headers
            <span class="method-badge">{{METHOD}}</span>
        </h1>
        <p class="subtitle">Inspect the request headers intercepted by the proxy</p>
    </div>

    <div class="section">
        <h2 class="section-title">Headers</h2>
        <table>
            <thead>
            <tr>
                <th>Header</th>
                <th>Value</th>
            </tr>
            </thead>
            <tbody>
            {{HEADER_ROWS}}
            </tbody>
        </table>
    </div>

    {{BODY_SECTION}}
</div>
</body>
</html>